package com.fs.common.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fs.common.annotation.ColumnDesc;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("yz_integral_product")
@EqualsAndHashCode(callSuper=false)
public class IntegralProduct extends IdEntity {

    @ColumnDesc(name="商品名称")
    private String productName;

    @ColumnDesc(name="商品所需积分")
    private Integer integral;

    @ColumnDesc(name="商品类型")
    private String type;

    @ColumnDesc(name="商品简介")
    private String productDescribe;

    @ColumnDesc(name="排序")
    private Integer sort;

    @ColumnDesc(name="商品状态 0:有效 1:无效 2:审核中 3:已删除")
    private Integer state;

    @ColumnDesc(name="商品开始兑换时间")
    @JSONField(format="yyyy-MM-dd")
    private Date startTime;

    @ColumnDesc(name="商品结束兑换时间")
    @JSONField(format="yyyy-MM-dd")
    private Date endTime;

    @ColumnDesc(name="商品库存")
    private Integer stock;

    @ColumnDesc(name="图片")
    private String productIcon;

}
